import * as types from '~/store/types'

const mutations = {
  [types.HOME_PAGE] (state,payload) {  //封面首页
        state.HOME_PAGE = payload
  },
  [types.COOPERATION_TIMELINE] (state,payload) {  //合作时间轴
    state.COOPERATION_TIMELINE = payload
    },
  [types.STANDING_BOOK] (state,payload) {  //台账使用时间分布情况
    state.STANDING_BOOK = payload
  },
  [types.STANDING_BOOK_DISTRIBUTE] (state,payload) {  //台账分布情况
    state.STANDING_BOOK_DISTRIBUTE = payload
  },
  [types.RULE_PROCESS] (state,payload) {  //盘点规则及流程
    state.RULE_PROCESS = payload
  },
  [types.CLASSIFY_BOOK] (state,payload) {  //分类对账情况
    state.CLASSIFY_BOOK = payload
  },
  [types.CHECKACCOUNT_ADMINOFFICE] (state,payload) { // 对账情况各科室
    state.CHECKACCOUNT_ADMINOFFICE = payload
  },
  [types.CHECKACCOUNT_AGELIMIT] (state,payload) { // 对帐情况-使用年限
    state.CHECKACCOUNT_AGELIMIT = payload
  },
  [types.STANDINGBOOK_FINKDISK] (state,payload) { // 台账情况-医信精盘
    state.STANDINGBOOK_FINKDISK = payload
  },
  [types.CHECK_ACCOUNT] (state,payload) { // 对账情况
    console.log(payload)
    state.CHECK_ACCOUNT = payload
  },


  //第二章：云账数据分析
  [types.CLOUD_BOOK_DISTRIBUTE] (state,payload) { //云账情况
    state.CLOUD_BOOK_DISTRIBUTE = payload
  },
  [types.ADMINOFFICE_DEVICENUM] (state,payload) { // 科室多维分析-设备数量
    state.ADMINOFFICE_DEVICENUM = payload
  },
  [types.KEY_EQUIPMENT_USE_ANALYSIS] (state,payload) { // 重点设备使用情况分析
    state.KEY_EQUIPMENT_USE_ANALYSIS = payload
  },
  [types.KEY_EQUIPMENT_SERVICE_ANALYSIS] (state,payload) { // 重点设备超期服役分析
    state.KEY_EQUIPMENT_SERVICE_ANALYSIS = payload
  },
  [types.ADMINOFFICE_BRAND] (state,payload) { // 科室多维分析-品牌
    state.ADMINOFFICE_BRAND = payload
  },
  [types.ADMINOFFICE_CATEGORY] (state,payload) { // 科室多维分析-品类
    state.ADMINOFFICE_CATEGORY = payload
  },

  [types.CATEGORY_ANALYSIS] (state,payload) { // 医疗设备品类分析
    state.CATEGORY_ANALYSIS = payload
  },
  [types.ADMINOFFICE_OVERTIME_DEVICE] (state,payload) { // 科室多维分析-超时设备
    state.ADMINOFFICE_OVERTIME_DEVICE = payload
  },
  [types.KEYNOTEDEVICE_DISTRIBUTE] (state,payload) { // 重点设备分析-分布情况
    state.KEYNOTEDEVICE_DISTRIBUTE = payload
  },
  [types.LIFEDEVICE_DISTRIBUTE] (state,payload) { // 生命设备分析-分布情况
    state.LIFEDEVICE_DISTRIBUTE = payload
  },
  [types.DEVICE_VALUE] (state,payload) { // 设备价值分析
    state.DEVICE_VALUE = payload
  },
  [types.KEY_EQUIPMENT_BRAND_ANALYSIS] (state,payload) { // 重点品牌分析
    state.KEY_EQUIPMENT_BRAND_ANALYSIS = payload
  },
  [types.USETIME_ANALYSE] (state,payload) { // 使用时长分析
    state.USETIME_ANALYSE = payload
  },
  [types.ADMINOFFICE_USEAGE] (state,payload) { // 科室多维分析-使用年限分析
    state.ADMINOFFICE_USEAGE = payload
  },
  [types.ADMINOFFICE_DEVICEVALUE] (state,payload) { // 科室多维分析-价值分析
    state.ADMINOFFICE_DEVICEVALUE = payload
  },
  [types.KEYNOTEDEVICE_USEAGE] (state,payload) { // 重点设备-使用年限分析
    state.KEYNOTEDEVICE_USEAGE = payload
  },


  // 第三章: 盘盈与盘亏数据分析
  [types.PROFIT_DEVICE_VALUE] (state,payload) { // 盘盈分析-设备价值
    state.PROFIT_DEVICE_VALUE = payload
  },
  [types.PROFIT_MEDICINE_DEVICE] (state,payload) { // 盘盈分析-医疗设备
    state.PROFIT_MEDICINE_DEVICE = payload
  },
  [types.LOSSES_DEVICE_VALUE] (state,payload) { // 盘亏分析-设备价值
    state.LOSSES_DEVICE_VALUE = payload
  },
  [types.LOSSES_MEDICINE_DEVICE] (state,payload) { // 盘亏分析-医疗设备
    state.LOSSES_MEDICINE_DEVICE = payload
  },
  [types.DEPARTMENT_PROFIT_ANALYSIS] (state,payload) { // 盘盈分析-科室盘盈分析
    state.DEPARTMENT_PROFIT_ANALYSIS = payload
  },
  [types.LOSSES_USEAGE] (state,payload) { // 盘亏分析-盘亏设备使用年限分析
    state.LOSSES_USEAGE = payload
  },
  [types.PROFIT_BRAND_DEVICE] (state,payload) { // 盘亏分析-盘盈品牌分析
    state.PROFIT_BRAND_DEVICE = payload
  },
  [types.LOSSES_BRAND_DEVICE] (state,payload) { // 盘亏分析-盘亏品牌分析
    state.LOSSES_BRAND_DEVICE = payload
  },
  [types.LIFEDEVICE_BRAND_ANALYSIS] (state,payload) { // //生命支持类设备分析-品牌分析
    state.LIFEDEVICE_BRAND_ANALYSIS = payload
  },



  //第四章: 管理问题与建议
  [types.MANAGE_ADVISE] (state,payload) { // 管理问题与建议
    state.MANAGE_ADVISE = payload
  },


  //第五章: 附录
  [types.DEFINITION_CONCEPT] (state,payload) { // 定义&概念
    state.DEFINITION_CONCEPT = payload
  },
  [types.CATEGORY_APPRAISEMENT] (state,payload) { // 各品类设备估值
    state.CATEGORY_APPRAISEMENT = payload
  },

  //第六章: 维修
  [types.REPAIR_BASE_CASE] (state,payload) { // 维修基本情况
    state.REPAIR_BASE_CASE = payload
  },
  [types.TIME_ANALYSIS] (state,payload) { // 时间分析
    state.TIME_ANALYSIS = payload
  },
  [types.DEPARTMENT_ANALYSIS] (state,payload) { // 科室分析
    state.DEPARTMENT_ANALYSIS = payload
  },
  [types.VALUE_REPAIR_ANALYSIS] (state,payload) { // 价值维修分析
    state.VALUE_REPAIR_ANALYSIS = payload
  },
  [types.USE_YEAR_ANALYSIS] (state,payload) { // 使用年限分析
    state.USE_YEAR_ANALYSIS = payload
  },
  [types.VARIETIES_REPAIR_ANALYSIS] (state,payload) { // 品类维修分析
    state.VARIETIES_REPAIR_ANALYSIS = payload
  },
  [types.KEY_EQUIPMENT_REPAIR_ANALYSIS] (state,payload) { // 重点设备维修分析
    state.KEY_EQUIPMENT_REPAIR_ANALYSIS = payload
  },
  [types.EQUIPMENT_REPAIR_BRAND_ANALYSIS] (state,payload) { // 重点设备维修品牌分析
    state.EQUIPMENT_REPAIR_BRAND_ANALYSIS = payload
  },
  [types.EQUIPMENT_REPAIR_TICKS_ANALYSIS] (state,payload) { // 重点设备维修工单分析
    state.EQUIPMENT_REPAIR_TICKS_ANALYSIS = payload
  },
  [types.EQUIPMENT_ERROR_ANALYSIS] (state,payload) { // 重点设备故障原因分析
    state.EQUIPMENT_ERROR_ANALYSIS = payload
  },
  [types.LIFE_EQUIP_REPAIR_TIME_ANALYSIS] (state,payload) { // 生命支持类设备维修时间分析
    state.LIFE_EQUIP_REPAIR_TIME_ANALYSIS = payload
  },
  [types.LIFE_EQUIP_REPAIR_BRAND_ANALYSIS] (state,payload) { // 生命支持类设备维修品牌分析
    state.LIFE_EQUIP_REPAIR_BRAND_ANALYSIS = payload
  },
  [types.LIFE_EQUIP_REPAIR_CATEGORY_ANALYSIS] (state,payload) { // 生命支持类设备维修品类分析
    state.LIFE_EQUIP_REPAIR_CATEGORY_ANALYSIS = payload
  },
  [types.LIFE_EQUIP_ERROR_ANALYSIS] (state,payload) { // 生命支持类设备故障原因分析
    state.LIFE_EQUIP_ERROR_ANALYSIS = payload
  },
  [types.WORKER_WORKLOAD_COUNT] (state,payload) { // 医工工作量统计
    state.WORKER_WORKLOAD_COUNT = payload
  },
  [types.WORKER_RESPONSE_TIME] (state,payload) { // 医工响应及维修时长
    state.WORKER_RESPONSE_TIME = payload
  },



  [types.CURRENT_MONTH_REPAIR] (state,payload) {
    state.CURRENT_MONTH_REPAIR = payload
  },
  [types.CURRENT_MONTH_DEVICE] (state,payload) {
        state.CURRENT_MONTH_DEVICE = payload
  },


  [types.PAGE_DIRECTORY] (state,payload) {
    state.PAGE_DIRECTORY = payload
  },

  [types.H_HOME_PAGE] (state,payload) {
    state.H_HOME_PAGE = payload
  },
  [types.H_INFO_STRUCTURE] (state,payload) {
    state.H_INFO_STRUCTURE = payload
  },
  [types.H_KEYNOTE_DEVICE] (state,payload) {
    state.H_KEYNOTE_DEVICE = payload
  },
  [types.H_DEPARTMENT_BRAND] (state,payload) {
    state.H_DEPARTMENT_BRAND = payload
  },
  [types.H_DEPARTMENT_CATEGORY] (state,payload) {
    state.H_DEPARTMENT_CATEGORY = payload
  },
  [types.H_DEPARTMENT_VALUE] (state,payload) {
    state.H_DEPARTMENT_VALUE = payload
  },
  [types.H_INFO_DEPARTMENT] (state,payload) {
    state.H_INFO_DEPARTMENT = payload
  },
  [types.H_WORKER_WORKLOAD] (state,payload) {
    state.H_WORKER_WORKLOAD = payload
  },
  [types.H_INFO_BASIC] (state,payload) {
    state.H_INFO_BASIC = payload
  },
  [types.H_REPAIR_VALUE] (state,payload) {
    state.H_REPAIR_VALUE = payload
  },
  [types.H_SECONDMENT_DEPARTMENT] (state,payload) {
    state.H_SECONDMENT_DEPARTMENT = payload
  },
  [types.H_SECONDMENT_CATEGORY] (state,payload) {
    state.H_SECONDMENT_CATEGORY = payload
  },
  [types.H_INFO_BRAND] (state,payload) {
    state.H_INFO_BRAND = payload
  },
  [types.H_REPAIR_BARND] (state,payload) {
    state.H_REPAIR_BARND = payload
  },
  [types.H_REPAIR_BASIC] (state,payload) {
    state.H_REPAIR_BASIC = payload
  },
  [types.H_END_PAGE] (state,payload) {
    state.H_END_PAGE = payload
  }
}

export default mutations
